﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using ThuPhap.Models;

namespace ThuPhap.Controls
{
    public partial class FontControl : UserControl
    {
        public static List<FontFamilyManage> FontList = new List<FontFamilyManage>();
        public FontControl()
        {
            InitializeComponent();
            FontFamilyManage font = new FontFamilyManage();
            if (FontList.Count == 0)
            {
                this.FontListBox.ItemsSource = font.Load();
            }
        }

        public int GetSelectedIndex()
        {
            return FontListBox.SelectedIndex;
        }

        public void SetSelectedIndex(int Index)
        {
            this.FontListBox.SelectedIndex = Index;
        }
    }
}
